package Inherit;

public abstract class Animal2 {
    private int age;
    private String color;
    public Animal2(){}
    public Animal2(int age, String color) {
        this.age = age;
        this.color = color;
    }

    public void setAge(int age){
        this.age=age;
    }

    public int getAge(){
        return age;
    }
    public void setColor(String color){
        this.color=color;
    }

    public String getColor(){
        return color;
    }
    public abstract void eat(String something);
}
